package com.sky.service.impl;

import com.sky.entity.ShopStatus;
import com.sky.mapper.ShopStatusServiceMapper;
import com.sky.service.ShopStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 符健清
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Service
public class ShopStatusServiceimpl  implements ShopStatusService {
    @Autowired
    private ShopStatusServiceMapper  shopStatusServiceMapper;

    /**
     * 查询商家状态
     * @return
     */
    @Override
    public List<ShopStatus> selectShopStatus() {
         List<ShopStatus> list =shopStatusServiceMapper.selectShopStatus();
        return  list;
    }

    /**
     * 修改商家状态
     * @param status
     */
    @Override
    public void updateShopStatus(Integer status) {
        shopStatusServiceMapper.updateShopStatus(status);
    }
}
